package com.garlicts.framework.crawler.executor.crawler;

import org.apache.commons.pool2.impl.GenericObjectPoolConfig;

import com.gargoylesoftware.htmlunit.WebClient;

public class WebClientPoolConfig extends GenericObjectPoolConfig<WebClient> {

	public WebClientPoolConfig(){
		int availableProcessors = Runtime.getRuntime().availableProcessors();
		setMaxTotal(availableProcessors * 2);
		setTestOnBorrow(true);
	}
	
}
